package cn.bdqn.service.impl;

import cn.bdqn.mapper.AppInfoMapper;
import cn.bdqn.pojo.AppInfo;
import cn.bdqn.service.AppInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Transactional
@Service
public class AppInfoServiceImpl implements AppInfoService {
    @Resource
    private AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> getAppInfoList(AppInfo appInfo, int currPage, int pageSize) {
        return appInfoMapper.getAppInfoList(appInfo, currPage, pageSize);
    }

    @Override
    public int getAppInfoCount(AppInfo appInfo) {
        return appInfoMapper.getAppInfoCount(appInfo);
    }

    @Override
    public List<AppInfo> getDevAppInfoList(AppInfo appInfo, int currPage, int pageSize) {
        return appInfoMapper.getDevAppInfoList(appInfo, currPage, pageSize);
    }

    @Override
    public int getDevAppInfoListCount(AppInfo appInfo) {
        return appInfoMapper.getDevAppInfoListCount(appInfo);
    }

    @Override
    public int addAppInfo(AppInfo appInfo) {
        return appInfoMapper.addAppInfo(appInfo);
    }

    @Override
    public int findApkName(String apkName) {
        return appInfoMapper.findApkName(apkName);
    }

    @Override
    public AppInfo getAppInfoId(int aid) {
        return appInfoMapper.getAppInfoId(aid);
    }

    @Override
    public int updateAppInfo(Integer aid, Integer status,Integer checkId) {
        return appInfoMapper.updateAppInfo(aid,status,checkId);
    }



    @Override
    public int updateFile(int id) {
        return appInfoMapper.updateFile(id);
    }

    @Override
    public int doUpdate(AppInfo appInfo) {
        return appInfoMapper.doUpdate(appInfo);
    }

    @Override
    public int updateVersionId(int id, int vid) {
        return appInfoMapper.updateVersionId(id,vid);
    }

    @Override
    public int delAppInfo(int aid) {
        return appInfoMapper.delAppInfo(aid);
    }
}
